﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Microsoft.Practices.WizardFramework;
using System.ComponentModel.Design;

namespace ProjectBase.Guidance.CustomWizardPages
{
    public partial class SolutionPage1 : Microsoft.Practices.WizardFramework.CustomWizardPage
    {
        #region constructor
        public SolutionPage1(WizardForm parent)
            : base(parent)
        {
            InitializeComponent();
        }
        #endregion constructor

        #region events (Click)
        private void StoreArguments_Click(object sender, EventArgs e)
        {
            IDictionaryService dictionaryService = GetService(typeof(IDictionaryService)) as IDictionaryService;

            dictionaryService.SetValue("DefaultIsXml", ".Xml");
            if (radioButton2.Checked)
            {
                dictionaryService.SetValue("DefaultIsXml", "");
            }
        }

        #endregion events (Click)

        #region recipe properties
        [RecipeArgument]
        public string DefaultIsXml { get; set; }
        #endregion recipe properties

        private void infoPanel_Paint(object sender, PaintEventArgs e)
        {
            this.infoPanel.Visible = false;
        }
    }
}
